Dart.PowerTCP.SslSockets Namespace > Ping Class > BeginSendIcmp Method : BeginSendIcmp(String,Int32,Int32,Byte[],Object) Method |
Asynchronously determine if a host is reachable, specifying a TTL, sequence number, and additional data to send.
[Visual Basic]
<DescriptionAttribute("Begin an asynchronous ICMP Ping with a remote host, local host, the data sent, and any object.")>
Overloads Public Function BeginSendIcmp( _
ByVal remoteHost As String, _
ByVal TTL As Integer, _
ByVal sequenceNumber As Integer, _
ByVal data() As Byte, _
ByVal state As Object _
) As Integer
[C#]
[DescriptionAttribute("Begin an asynchronous ICMP Ping with a remote host, local host, the data sent, and any object.")]
public int BeginSendIcmp(
string remoteHost,
int TTL,
int sequenceNumber,
byte[] data,
object state
);
[C++]
[DescriptionAttribute("Begin an asynchronous ICMP Ping with a remote host, local host, the data sent, and any object.")]
public: int BeginSendIcmp(
string* remoteHost,
int TTL,
int sequenceNumber,
byte[]* data,
Object* state
)
[C++/CLI]
[DescriptionAttribute("Begin an asynchronous ICMP Ping with a remote host, local host, the data sent, and any object.")]
public:
int BeginSendIcmp(
String^ remoteHost,
int TTL,
int sequenceNumber,
bytearray<data>^ data,
Object^ state
)
The number of bytes sent to remoteHost.
Exception | Description |
---|---|
InvalidOperationException | BeginXXX method used without providing an EndXXX event handler. |
SocketException | The remote address is unknown, invalid, or unable to be resolved. |
This method pings the host (or hosts if a broadcast address is used) specified by remoteHost with the settings specified by TTL, sequenceNumber, and data. Upon completion the EndSend event is raised (multiple times if multiple hosts respond to a broadcast request). An EchoResult object is made accessible in the event, describing the ping operation. Check the properties of the EchoResult for data about the Ping operation. For example, ResponseTime returns the amount of time for the response to be received.
BeginSendIcmp differs from BeginSend in that multiple requests are all sent on a single thread as opposed to BeginSend which each request is made on a separate thread, which may limit the number of outstanding requests to the number of available threads. BeginSendIcmp is nearly unlimited in the number of outstanding requests it may have.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Ping Class | Ping Members | Overload List
Send comments on this topic.
Documentation version 1.1.2.0.
© 2008 Dart Communications. All rights reserved.